Polar encoding and decoding method, sending device, and receiving device

ABSTRACT

This application provides a polar encoding and decoding method, a sending device, and a receiving device, to help overcome disadvantages in transmission of medium and small packets, a code rate, reliability, and complexity in the prior art. The method includes: pre-storing, by a computing device, at least one mother code sequence, wherein each mother code sequence comprises at least one subsequence and at least one subset, the at least one subsequence and the at least one subset each comprises one or more sequence numbers corresponding to one or more polarized channels, and wherein the one or more sequence numbers in each subsequence are arranged in an ascending order according to reliability of the corresponding one or more polarized channels; determining, by the computing device, a set of information bit sequence numbers from the at least one mother code sequence based on a code length of a target polar code; and performing, by the computing device, polar encoding on information bits based on the set of information bit sequence numbers.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Patent ApplicationNo. PCT/CN2018/081189, filed on Mar. 29, 2018, which claims priority toChinese Patent Application No. 201710214465.0, filed on Apr. 1, 2017,The disclosures of the aforementioned applications are herebyincorporated by reference in their entireties.

TECHNICAL FIELD

This application relates to the polar code field, and more specifically,to a polar encoding and decoding method, a sending device, and areceiving device.

BACKGROUND

As a most fundamental radio access technology, channel encoding plays acrucial role in ensuring reliable data transmission. In an existingwireless communications system, channel encoding is usually performed byusing a turbo code, a low-density parity-check (Low-DensityParity-Check, LDPC) code, or a polar code. The turbo code cannot supportinformation transmission at an excessively low or high code rate. Fortransmission of medium and small packets, due to encoding and decodingcharacteristics of the turbo code and the LDPC code, it is difficult toachieve desired performance of the turbo code and the LDPC code in acase of a limited code length. In terms of implementation, the turbocode and the LDPC code in an encoding and decoding implementationprocess have relatively high computing complexity. The polar code hasbeen theoretically proved to achieve a Shannon capacity and hasrelatively low encoding and decoding complexity, and therefore is widelyapplied.

The polar code is a linear block code. A generator matrix of a polarcode is F_(N), and an encoding process of a polar code is x₁ ^(N)=u₁^(N)·F_(N). u₁ ^(N)=(u₁, u₂, u₃, . . . u_(N)) is a binary row vectorwith a length of N, where N=2^(n), and n is a positive integer. In anencoding process of the polar code, some bits in u₁ ^(N) are used tocarry information, and are referred to as information bits. A set ofindexes of the information bits is denoted as A. The other bits in u₁^(N) are set to fixed values that are pre-agreed on by a receive end anda transmit end, and are referred to as fixed bits. The encoding processof the polar code mainly depends on a process of selecting the set A,and the set A decides performance of polar encoding and decoding. Mostexisting polar encoding solutions use an online computing or offlinestorage manner to determine a sequence number set of information bits.Because the online computing manner considers no parameter of an actualchannel, a decoding failure is easily caused by different computingprecision between transmit and receive ends, and a latency andcomplexity of online computing are relatively high. In the offlinestorage manner, to support various combinations of code lengths and coderates, transmit and receive ends need to store a large quantity ofmother code sequences, resulting in huge storage overheads and lack offlexibility.

With rapid evolution of wireless communications systems, a futurecommunications system (for example, 5G) exhibits some newcharacteristics. For example, three most typical communication scenariosinclude: enhanced mobile broadband (eMBB), massive machine typecommunications (mMTC), and ultra-reliable and low latency communications(URLLC). These communication scenarios impose higher requirements ondata transmission in aspects such as reliability, complexity,flexibility, and a latency. In addition, an important characteristicthat distinguishes eMBB and mMTC from an existing Long Term Evolution(LTE) technology lies in transmission of medium and small packets, andtherefore channel encoding is required to better support communicationof such code lengths.

Therefore, to meet higher requirements of the future wirelesscommunications system on data transmission in aspects such as a coderate, reliability, a latency, flexibility, and complexity, a newencoding and decoding technology is urgently needed, to overcomedisadvantages of a channel encoding technology in the prior art in theseaspects.

SUMMARY

This application provides a polar encoding and decoding method, to helpovercome disadvantages of a channel encoding technology in the prior artin aspects such as a code rate, reliability, a latency, flexibility, andcomplexity.

According to a first aspect, this application provides a polar encodingmethod, where the method includes: prestoring, by a sending device, atleast one mother code sequence, where each mother code sequence includesat least one subsequence and at least one subset, an element in eachsubsequence or subset is a sequence number of a polarized channel, eachsubsequence or subset includes at least one sequence number, andrelative locations of sequence numbers in each subsequence are arrangedin order of reliability of polarized channels; determining, by thesending device, an information bit sequence number set from the at leastone mother code sequence based on a code length of a target polar code;and performing, by the sending device, polar encoding on informationbits based on the information bit sequence number set.

In a possible implementation, relative locations of the at least onesubsequence and the at least one subset are arranged in order ofreliability of polarized channels, and when reliability of a firstsubsequence in the at least one subsequence is higher than reliabilityof an adjacent first subset, reliability of a polarized channelcorresponding to any sequence number in the first subsequence is higherthan reliability of a polarized channel corresponding to any sequencenumber in the first subset; or when reliability of a first subset in theat least one subset is higher than reliability of an adjacent secondsubset, reliability of a polarized channel corresponding to any sequencenumber in the first subset is higher than reliability of a polarizedchannel corresponding to any sequence number in the second subset; orwhen reliability of a first subset in the at least one subset is higherthan reliability of a first subsequence in the at least one subsequence,reliability of a polarized channel corresponding to any sequence numberin the first subset is higher than reliability of a polarized channelcorresponding to any sequence number in the first subsequence.

In a possible implementation, the determining, by the sending device, aninformation bit sequence number set from the at least one mother codesequence based on a code length of a target polar code includes:determining, by the sending device, the information bit sequence numberset from the at least one mother code sequence based on a quantity K ofinformation bits in the target polar code or a quantity F of fixed bitsin the target polar code.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes: selecting, by the sending device based on thequantity K of the information bits, non-punctured sequence numbers lessthan or equal to N from a maximum mother code sequence in the at leastone mother code sequence in descending order of reliability as a mothercode sequence of the target polar code; and determining, by the sendingdevice, the information bit sequence number set based on the mother codesequence of the target polar code, where N is a mother code length ofthe target polar code.

In a possible implementation, the selecting, by the sending device, theinformation bit sequence number set from the maximum mother codesequence based on the quantity K of the information bits in the targetpolar code includes:

sequentially selecting, by the sending device in descending order ofreliability, K non-punctured sequence numbers less than or equal to Nfrom the maximum mother code sequence as the information bit sequencenumber set, where N is the mother code length of the target polar code.

In this implementation, the quantity K of the information bits is aquantity of non-fixed bits. When there is a check bit, K in thisspecification also includes the check bit.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes: when K=M₁, selecting, by the sending device indescending order of reliability, the first M₁ non-punctured sequencenumbers from the mother code sequence of the target polar code as theinformation bit sequence number set, where M₁ is a quantity of sequencenumbers in the first at least one subsequence or subset in the mothercode sequence of the target polar code in descending order ofreliability, M₁≥1, and M₁ is an integer.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes: when M₁<K≤M₂, selecting, by the sending device indescending order of reliability, the first M₁ non-punctured sequencenumbers from the mother code sequence of the target polar code as afirst sequence number set, where M₁ is a quantity of sequence numbers inthe first at least one subsequence or subset in the mother code sequenceof the target polar code in descending order of reliability, M₂>M₁, andM₁ and M₂ are positive integers; selecting, by the sending device indescending order of reliability from non-punctured sequence numbers in asubsequence or a subset adjacent to a subsequence or a subset in whichthe M₁ non-punctured sequence numbers are located, (K−M₁) sequencenumbers as a second sequence number set; and determining sequencenumbers in the first sequence number set and the second sequence numberset as the information bit sequence number set.

In a possible implementation, a third subset is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and the selecting, by the sending device in descendingorder of reliability from non-punctured sequence numbers in asubsequence or a subset adjacent to a subsequence or a subset in whichthe M₁ non-punctured sequence numbers are located, (K−M₁) sequencenumbers as a second sequence number set includes: selecting, by thesending device in descending order of reliability in an online computingor table reading manner, (K−M₁) sequence numbers from non-puncturedsequence numbers in the third subset as the second sequence number set.

In a possible implementation, a second subsequence is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and the selecting, by the sending device in descendingorder of reliability from non-punctured sequence numbers in asubsequence or a subset adjacent to a subsequence or a subset in whichthe M₁ non-punctured sequence numbers are located, (K−M₁) sequencenumbers as a second sequence number set includes: selecting, by thesending device in descending order of reliability, (K−M₁) sequencenumbers from non-punctured sequence numbers in the second subsequence asthe second sequence number set.

In a possible implementation, the sending device further prestores afirst sorting table, and the first sorting table records reliabilitysorting of the non-punctured sequence numbers in the third subset, andthe selecting, by the sending device in descending order of reliabilityin a table reading manner, (K−M₁) sequence numbers from non-puncturedsequence numbers in the third subset as the second sequence number setincludes: selecting, by the sending device in descending order ofreliability, (K−M₁) non-punctured sequence numbers from the firstsorting table as the second sequence number set.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes: selecting, by the sending device based on the quantity Fof the fixed bits in ascending order of reliability, non-puncturedsequence numbers less than or equal to N from a maximum mother codesequence in the at least one mother code sequence as a mother codesequence of the target polar code; and determining, by the sendingdevice, a fixed bit sequence number set based on the mother codesequence of the target polar code, where N is a mother code length ofthe target polar code; and determining, by the sending device, acomplement of the fixed bit sequence number set relative to a setincluding sequence numbers in the mother code sequence of the targetpolar code as the information bit sequence number set.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes: when F=M₃, selecting, by the sending device in ascendingorder of reliability, the first M₃ non-punctured sequence numbers fromthe mother code sequence of the target polar code as a fixed bitsequence number set, where M₃ is a quantity of sequence numbers in thefirst at least one subsequence or subset in the mother code sequence ofthe target polar code in ascending order of reliability, M₃>1, and M₃ isan integer; and determining, by the sending device, a complement of thefixed bit sequence number set relative to a set including sequencenumbers in the mother code sequence of the target polar code as theinformation bit sequence number set.

In a possible implementation, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes: when M₃<F≤M₄, selecting, by the sending device inascending order of reliability, the first M₃ non-punctured sequencenumbers from the mother code sequence of the target polar code as athird sequence number set, where M₃ is a quantity of sequence numbers inthe first at least one subsequence or subset in the mother code sequenceof the target polar code in ascending order of reliability, M₄>M₃, andM₃ and M₄ are positive integers; selecting, by the sending device inascending order of reliability from a subsequence or a subset adjacentto a subsequence or a subset in which the M₃ non-punctured sequencenumbers are located, (F−M₃) sequence numbers as a fourth sequence numberset; determining, by the sending device, sequence numbers in the thirdsequence number set and the fourth sequence number set as a fixed bitsequence number set; and determining, by the sending device, acomplement of the fixed bit sequence number set relative to a setincluding sequence numbers in the mother code sequence of the targetpolar code as the information bit sequence number set.

In a possible implementation, a fourth subset is adjacent to thesubsequence or the subset in which the M₃ non-punctured sequence numbersare located, and the selecting, by the sending device in ascending orderof reliability from a subsequence or a subset adjacent to a subsequenceor a subset in which the M₃ non-punctured sequence numbers are located,(F−M₃) sequence numbers as a fourth sequence number set includes:selecting, by the sending device in ascending order of reliability in anonline computing or table reading manner, (F−M₃) sequence numbers fromnon-punctured sequence numbers in the fourth subset as the fourthsequence number set.

In a possible implementation, the sending device further prestores asecond sorting table, and the second sorting table records reliabilitysorting of the non-punctured sequence numbers in the fourth subset, andthe selecting, by the sending device in ascending order of reliabilityin a table reading manner, (F−M₃) sequence numbers from non-puncturedsequence numbers in the fourth subset as the fourth sequence number setincludes: selecting, by the sending device in descending order ofreliability, (F−M₃) non-punctured sequence numbers from the secondsorting table as the fourth sequence number set.

According to a second aspect, this application provides a polar decodingmethod, where the method includes: prestoring, by a receiving device, atleast one mother code sequence, where each mother code sequence includesat least one subsequence and at least one subset, an element in eachsubsequence or subset is a sequence number of a polarized channel, eachsubsequence or subset includes at least one sequence number, andrelative locations of sequence numbers in each subsequence are arrangedin order of reliability of polarized channels; obtaining, by thereceiving device, a to-be-decoded sequence; and decoding, by thereceiving device, the to-be-decoded sequence based on a code length of atarget polar code and the at least one mother code sequence.

In a possible implementation, relative locations of the at least onesubsequence and the at least one subset are arranged in order ofreliability of polarized channels, and when reliability of a firstsubsequence in the at least one subsequence is higher than reliabilityof an adjacent first subset, reliability of a polarized channelcorresponding to any sequence number in the first subsequence is higherthan reliability of a polarized channel corresponding to any sequencenumber in the first subset; or when reliability of a first subset in theat least one subset is higher than reliability of an adjacent secondsubset, reliability of a polarized channel corresponding to any sequencenumber in the first subset is higher than reliability of a polarizedchannel corresponding to any sequence number in the second subset; orwhen reliability of a first subset in the at least one subset is higherthan reliability of a first subsequence in the at least one subsequence,reliability of a polarized channel corresponding to any sequence numberin the first subset is higher than reliability of a polarized channelcorresponding to any sequence number in the first subsequence.

In a possible implementation, the decoding, by the receiving device, theto-be-decoded sequence based on a code length of a target polar code andthe at least one mother code sequence includes: determining, by thereceiving device, an information bit sequence number set based on the atleast one mother code sequence and a quantity K of information bits inthe target polar code or a quantity F of fixed bits in the target polarcode; and decoding, by the receiving device, the to-be-decoded sequencebased on the information bit sequence number set.

In a possible implementation, the determining, by the receiving device,an information bit sequence number set based on the at least one mothercode sequence and a quantity K of information bits in the target polarcode includes: selecting, by the receiving device based on the quantityK of the information bits, non-punctured sequence numbers less than orequal to N from a maximum mother code sequence in the at least onemother code sequence in descending order of reliability as a mother codesequence of the target polar code; determining, by the receiving device,the information bit sequence number set based on the mother codesequence of the target polar code; and decoding, by the receivingdevice, the to-be-decoded sequence based on the information bit sequencenumber set, where N is a mother code length of the target polar code.

In a possible implementation, the selecting, by the receiving device, afixed bit sequence number set from the maximum mother code sequencebased on the quantity F of the fixed bits in the target polar codeincludes:

sequentially selecting, by the sending device in ascending order ofreliability, F non-punctured sequence numbers less than or equal to Nfrom the maximum mother code sequence as the fixed bit sequence numberset, where N is the mother code length of the target polar code.

In a possible implementation, the determining, by the receiving device,the information bit sequence number set based on the mother codesequence of the target polar code includes: when K=M₁, selecting, by thereceiving device in descending order of reliability, the first M₁non-punctured sequence numbers from the mother code sequence of thetarget polar code as the information bit sequence number set, where M₁is a quantity of sequence numbers in the first at least one subsequenceor subset in the mother code sequence of the target polar code indescending order of reliability, M₁>1, and M₁ is an integer.

In a possible implementation, the determining, by the receiving device,the information bit sequence number set based on the mother codesequence of the target polar code includes: when M₁<K≤M₂, selecting, bythe receiving device in descending order of reliability, the first M₁non-punctured sequence numbers from the mother code sequence of thetarget polar code as a first sequence number set, where M₁ is a quantityof sequence numbers in the first at least one subsequence or subset inthe mother code sequence of the target polar code in descending order ofreliability, M₂>M₁, and M₁ and M₂ are positive integers; selecting, bythe receiving device in descending order of reliability fromnon-punctured sequence numbers in a subsequence or a subset adjacent toa subsequence or a subset in which the M₁ non-punctured sequence numbersare located, (K−M₁) sequence numbers as a second sequence number set;and determining, by the receiving device, sequence numbers in the firstsequence number set and the second sequence number set as theinformation bit sequence number set.

In a possible implementation, a third subset is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and the selecting, by the receiving device in descendingorder of reliability from non-punctured sequence numbers in asubsequence or a subset adjacent to a subsequence or a subset in whichthe M₁ non-punctured sequence numbers are located, (K−M₁) sequencenumbers as a second sequence number set includes: selecting, by thereceiving device in descending order of reliability in an onlinecomputing or table reading manner, (K−M₁) sequence numbers fromnon-punctured sequence numbers in the third subset as the secondsequence number set; and determining, by the receiving device, the firstsequence number set and the second sequence number set as theinformation bit sequence number set.

In a possible implementation, a second subsequence is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and the selecting, by the receiving device in descendingorder of reliability from non-punctured sequence numbers in asubsequence or a subset adjacent to a subsequence or a subset in whichthe M₁ non-punctured sequence numbers are located, (K−M₁) sequencenumbers as a second sequence number set includes: selecting, by thereceiving device in descending order of reliability, (K−M₁) sequencenumbers from non-punctured sequence numbers in the second subsequence asthe second sequence number set.

In a possible implementation, the receiving device further prestores afirst sorting table, and the first sorting table records reliabilitysorting of the non-punctured sequence numbers in the third subset, andthe selecting, by the receiving device in descending order ofreliability in an online computing or table reading manner, (K−M₁)sequence numbers from non-punctured sequence numbers in the third subsetas the second sequence number set includes: selecting, by the receivingdevice in descending order of reliability, (K−M₁) non-punctured sequencenumbers from the first sorting table as the second sequence number set.

In a possible implementation, the decoding, by the receiving device, theto-be-decoded sequence based on the at least one mother code sequenceand the quantity F of the fixed bits in the target polar code includes:selecting, by the receiving device based on the quantity F of the fixedbits in ascending order of reliability, non-punctured sequence numbersless than or equal to N from a maximum mother code sequence in the atleast one mother code sequence as a mother code sequence of the targetpolar code; determining, by the receiving device, a fixed bit sequencenumber set based on the mother code sequence of the target polar code,where N is a mother code length of the target polar code; anddetermining, by the receiving device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

In a possible implementation, the determining, by the receiving device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes: when F=M₃, selecting, by the receiving device inascending order of reliability, the first M₃ non-punctured sequencenumbers from the mother code sequence of the target polar code as afixed bit sequence number set, where M₃ is a quantity of sequencenumbers in the first at least one subsequence or subset in the mothercode sequence of the target polar code in ascending order ofreliability, M_(3>1), and M₃ is an integer; and determining, by thereceiving device, a complement of the fixed bit sequence number setrelative to a set including sequence numbers in the mother code sequenceof the target polar code as the information bit sequence number set.

In a possible implementation, the determining, by the receiving device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes: when M₃<F≤M₄, selecting, by the receiving device inascending order of reliability, the first M₃ non-punctured sequencenumbers from the mother code sequence of the target polar code as athird sequence number set, where M₃ is a quantity of sequence numbers inthe first at least one subsequence or subset in the mother code sequenceof the target polar code in ascending order of reliability, M₄>M₃, andM₃ and M₄ are positive integers; selecting, by the receiving device inascending order of reliability from a subsequence or a subset adjacentto a subsequence or a subset in which the M₃ non-punctured sequencenumbers are located, (F−M₃) sequence numbers as a fourth sequence numberset; determining, by the receiving device, sequence numbers in the thirdsequence number set and the fourth sequence number set as a fixed bitsequence number set; and determining, by the receiving device, acomplement of the fixed bit sequence number set relative to a setincluding sequence numbers in the mother code sequence of the targetpolar code as the information bit sequence number set.

In a possible implementation, a fourth subset is adjacent to thesubsequence or the subset in which the M₃ non-punctured sequence numbersare located, and the selecting, by the receiving device in ascendingorder of reliability from a subsequence or a subset adjacent to asubsequence or a subset in which the M₃ non-punctured sequence numbersare located, (F−M₃) sequence numbers as a fourth sequence number setincludes: selecting, by the receiving device in ascending order ofreliability in an online computing or table reading manner, (F−M₃)sequence numbers from non-punctured sequence numbers in the fourthsubset as the fourth sequence number set.

In a possible implementation, the receiving device further prestores asecond sorting table, and the second sorting table records reliabilitysorting of the non-punctured sequence numbers in the fourth subset, andthe selecting, by the receiving device in ascending order of reliabilityin a table reading manner, (F−M₃) sequence numbers from non-puncturedsequence numbers in the fourth subset as the fourth sequence number setincludes: selecting, by the receiving device in descending order ofreliability, (F−M₃) non-punctured sequence numbers from the secondsorting table as the fourth sequence number set.

According to a third aspect, this application provides a sending device,configured to perform the method according to any one of the firstaspect or the possible implementations of the first aspect.Specifically, the sending device includes a unit configured to performthe method according to any one of the first aspect or the possibleimplementations of the first aspect.

According to a fourth aspect, this application provides a receivingdevice, configured to perform the method according to any one of thesecond aspect or the possible implementations of the second aspect.Specifically, the receiving device includes a unit configured to performthe method according to any one of the second aspect or the possibleimplementations of the second aspect.

According to a fifth aspect, this application provides a sending device.The sending device includes one or more processors, one or morememories, and one or more transceivers (each transceiver includes atransmitter and a receiver). The transmitter or the receiver isconnected to one or more antennas, and sends or receives a signal byusing the one or more antennas. The memory is configured to store acomputer program instruction (or code). The processor is configured toexecute the instruction stored in the memory, and when the instructionis executed, the processor performs the method according to any one ofthe first aspect or the possible implementations of the first aspect.

Optionally, the memory may be independent, or may be integrated with theprocessor. When the processor is implemented by using hardware, forexample, may be a logical circuit or an integrated circuit, andconnected to other hardware by using an interface, the memory may not beneeded.

According to a sixth aspect, this application provides a receivingdevice. The receiving device includes one or more processors, one ormore memories, and one or more transceivers (each transceiver includes atransmitter and a receiver). The transmitter or the receiver isconnected to one or more antennas, and sends or receives a signal byusing the one or more antennas. The memory is configured to store acomputer program instruction (or code). The processor is configured toexecute the instruction stored in the memory, and when the instructionis executed, the processor performs the method according to any one ofthe second aspect or the possible implementations of the second aspect.

Optionally, the memory may be independent, or may be integrated with theprocessor. When the processor is implemented by using hardware, forexample, may be a logical circuit or an integrated circuit, andconnected to other hardware by using an interface, the memory may not beneeded.

According to a seventh aspect, this application provides acomputer-readable storage medium. The computer-readable storage mediumstores an instruction, and when the instruction runs on a computer, thecomputer performs the method according to any one of the first aspect orthe possible implementations of the first aspect.

According to an eighth aspect, this application provides acomputer-readable storage medium. The computer-readable storage mediumstores an instruction, and when the instruction runs on a computer, thecomputer performs the method according to any one of the second aspector the possible implementations of the second aspect.

In technical solutions provided in embodiments of this application, amother code sequence of a polar code including a sequence and a set thatare interleaved is provided, so that in a process of performing polarencoding and decoding by using a mother code sequence in such a form, ahalf-computing and half-storage manner may be used to select informationbits (that is, determine an information bit sequence number set).Therefore, a polar code sequence is constructed more flexibly. Inaddition, disadvantages in aspects such as transmission of medium andsmall data packets, reliability, complexity, and a code rate in theprior art are overcome to some extent.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic interaction diagram of a polar encoding anddecoding method according to this application;

FIG. 2 is a schematic structural diagram of a mother code sequenceaccording to this application;

FIG. 3 is a schematic block diagram of a sending device according to anembodiment of this application;

FIG. 4 is a schematic block diagram of a receiving device according toan embodiment of this application;

FIG. 5 is a schematic structural diagram of a sending device accordingto an embodiment of this application; and

FIG. 6 is a schematic structural diagram of a receiving device accordingto an embodiment of this application.

DESCRIPTION OF EMBODIMENTS

The following describes the technical solutions in this application withreference to the accompanying drawings.

First, a technology related to a polar code in this application isbriefly described.

The polar code is a linear block code. A generator matrix of the polarcode is F_(N), and an encoding process of the polar code is x₁ ^(N)=u₁^(N)·F_(N). u₁ ^(N)=(u₁, u₂, u₃, . . . u_(N)) is a binary row vectorwith a length of N, where N=2^(n), and n is a positive integer. F_(N)=F₂^(⊗(log) ² ^(N)), and

$F_{2} = {\begin{bmatrix}1 & 0 \\1 & 1\end{bmatrix} \cdot F_{2}^{\otimes {({\log_{2}\; N})}}}$is defined as a Kronecker product of log₂N matrices F₂. Addition andmultiplication operations in the foregoing formulas are addition andmultiplication operations in the binary Galois field.

In an encoding process of the polar code, some bits in u₁ ^(N) are usedto carry information, and are referred to as information bits. A set ofindexes of the information bits is denoted as A. The other bits in u₁^(N) are set to fixed values that are pre-agreed on by a receive end anda transmit end, and are referred to as fixed bits. A set of indexes ofthe fixed bits is represented by using a complement set A^(c) of A. Apolar code construction process mainly depends on a process of selectingthe set A, and the set A decides performance of the polar code.

In view of higher requirements on data transmission that are imposed byseveral typical communication scenarios, for example, eMBB, mMTC, andURLLC, of a future communications system (for example, 5G) in aspectssuch as reliability, latency, encoding and decoding complexity, andflexibility, embodiments of this application provide a polar encodingand decoding method, to overcome disadvantages of a polar code inaspects such as a code rate, reliability, a latency, flexibility, andcomplexity in the prior art.

The following describes in detail the polar encoding and decoding methodprovided in the embodiments of this application.

Numbers “first”, “second”, and the like in the embodiments of thisapplication are merely intended to distinguish between differentobjects, for example, to distinguish between different subsequences orsubsets, and shall not limit the protection scope of the embodiments ofthis application.

FIG. 1 is a schematic interaction diagram of a polar encoding anddecoding method 100 according to this application. Referring to FIG. 1,the method 100 mainly includes steps 110 to 150.

110. A sending device and a receiving device prestore at least onemother code sequence.

Each mother code sequence includes at least one subsequence and at leastone subset, an element in each subsequence or subset is a sequencenumber of a polarized channel, each subsequence or subset includes atleast one sequence number, and relative locations of sequence numbers ineach subsequence are arranged in order of reliability of polarizedchannels.

Reliability of a polarized channel may be calculated by using a methodsuch as density evolution, Gaussian approximation, or linear fitting inthe prior art. A specific calculation process may be the same as that inthe prior art. For brevity, details are not described herein.

In addition, a parameter such as an error probability, a channelcapacity, or a polarization weight may be selected as a parameter formeasuring the reliability of the polarized channel, or another parameterthat can be used to measure the polarized channel may be selected. Thisis not particularly limited in this embodiment of the present invention.

In this embodiment of this application, the mother code sequence storedin the sending device and the receiving device is an ordered sequenceincluding a subsequence and a subset that are sorted in an interleavedmanner. Any two adjacent parts in the mother code sequence may be asubsequence and a subsequence, or may be a subsequence and a subset, ormay be a subset and a subset.

For ease of understanding, a mother code sequence with a code length of32 is given herein as an example. For example, the mother code sequenceis [0, 1, 2, 4, 8], {16, 3}, {5, 6, 9, 10}, {17, 12}, {18, 20, 7, 24,11, 13}, {19, 14}, [21, 22, 25, 26], {28, 15}, [23, 27, 29, 30, 31].

In this mother code sequence, subsequences and subsets are arranged inan interleaved manner. A quantity of sequence numbers in eachsubsequence or subset may be any quantity (at least one).

For example, if sorting is performed in descending order of reliabilityof polarized channels, reliability of a polarized channel correspondingto a sequence number in a subsequence or a subset sorted near the frontis higher than reliability of a polarized channel corresponding to asequence number in a subsequence or a subset sorted near the rear.

For another example, if sorting is performed in ascending order ofreliability of polarized channels, reliability of a polarized channelcorresponding to a sequence number in a subsequence or a subset sortednear the front is lower than reliability of a polarized channelcorresponding to a sequence number in a subsequence or a subset sortednear the rear.

It should be noted that, all sequence numbers included in a subsequenceare sorted in order of reliability of polarized channels correspondingto the sequence numbers. In other words, the sequence numbers in thesubsequence are ordered. As described above, if sequence numbers in themother code sequence are sorted in descending order of reliability ofpolarized channels, sequence numbers in any subsequence in the mothercode sequence are also sorted in descending order of reliability ofpolarized channels corresponding to the sequence numbers. Thenreliability of a polarized channel corresponding to a sequence numbernear the front of the subsequence is higher than reliability of apolarized channel corresponding to a sequence number near the rear ofthe subsequence.

In this embodiment of this application, sequence numbers in a subset arenot ordered. In other words, in a subset, the arrangement of sequencenumbers are irrelevant to reliability of their corresponding polarizedchannels.

In addition, when reliability of a subsequence (denoted as a subsequence# A) is higher than reliability of another subsequence (denoted as asubsequence # B) in this embodiment of this application, reliability ofa polarized channel corresponding to any sequence number in thesubsequence # A is higher than reliability of a polarized channelcorresponding to any sequence number in the subsequence # B. The same istrue for magnitude comparison between reliability of a subsequence andreliability of a subset, or magnitude comparison between reliability ofa subset and reliability of another subset.

Optionally, in an embodiment, relative locations of the at least onesubsequence and the at least one subset are arranged in order ofreliability of polarized channels, and

when reliability of a first subsequence in the at least one subsequenceis higher than reliability of an adjacent first subset, reliability of apolarized channel corresponding to any sequence number in the firstsubsequence is higher than reliability of a polarized channelcorresponding to any sequence number in the first subset; or

when reliability of a first subset in the at least one subset is higherthan reliability of an adjacent second subset, reliability of apolarized channel corresponding to any sequence number in the firstsubset is higher than reliability of a polarized channel correspondingto any sequence number in the second subset; or

when reliability of a first subset in the at least one subset is higherthan reliability of a first subsequence in the at least one subsequence,reliability of a polarized channel corresponding to any sequence numberin the first subset is higher than reliability of a polarized channelcorresponding to any sequence number in the first subsequence.

FIG. 2 is a schematic structural diagram of a mother code sequenceaccording to this application. Referring to FIG. 2, the mother codesequence is (I₁, I₂, . . . , I_(i), I_(i+1), . . . , I_(n)), where Irepresents a subsequence or a subset. If sequence numbers in the mothercode sequence are sorted in ascending order of reliability of polarizedchannels, and j>i, reliability of a polarized channel corresponding toany sequence number in I_(j) is higher than reliability of a polarizedchannel corresponding to any sequence number in I_(i).

Using any two adjacent subsequences or subsets (for example, I_(i) andI_(i+1) shown in FIG. 2) in the mother code sequence as an example,I_(i) and I_(i+1) include the following several possible cases.

Case 1

I_(i) is a subsequence, and I_(i+1) is a subset.

In the case 1, I_(i) is a subsequence, and relative locations ofsequence numbers in I_(i) are sorted in order of reliability. I_(i+1) isa subset, and reliability of polarized channels corresponding tosequence numbers in I_(i+1) is not distinguished in relative magnitude(or value). However, because the entire mother code sequence is sortedin ascending order of reliability, and I_(i) is located before I_(i+1),reliability of a polarized channel corresponding to any sequence numberin I_(i+1) is higher than reliability of a polarized channelcorresponding to any sequence number in I_(i).

Case 2

I_(i) is a subset, and I_(i+1) is a subset.

In the case 2, both I_(i) and I_(i+1) are subsets, and thereforereliability of polarized channels corresponding to sequence numbers ineach of I_(i) and I_(i+1) is not distinguished in magnitude. However,because I_(i) is located before I_(i+1), reliability of a polarizedchannel corresponding to any sequence number in I_(i) is lower thanreliability corresponding to any sequence number in I_(i+1).

Case 3

I_(i) is a subset, and I_(i+1) is a subsequence.

Similar to the case 2, I_(i) herein is a subset, and reliability ofpolarized channels corresponding to sequence numbers in I_(i+1) is notdistinguished in magnitude. However, because I_(i) is located beforeI_(i+1), reliability of a polarized channel corresponding to anysequence number in I_(i) is lower than that of a polarized channel whosereliability is the lowest in I_(i+1).

In this embodiment of this application, a mother code sequence includesboth at least one subsequence and at least one subset. A quantity ofsubsequences and a quantity of subsets are not limited, and they may beequal, or may be unequal. Moreover, each subsequence may include anyquantity of (at least one) sequence numbers, and each subset may alsoinclude any quantity of (at least one) sequence numbers.

It should be noted that, in the mother code sequence provided in thisembodiment of this application, sequence numbers in a subset may besorted differently for polar codes with different lengths, differentalgorithms, or different parameters in a same algorithm. However, evenif different algorithms are used or different parameters in a samealgorithm are used, sorting of sequence numbers in a subsequence remainsunchanged.

120. The sending device determines an information bit sequence numberset from the at least one mother code sequence based on a code length ofa target polar code.

It may be learned from the foregoing description of the polar code that,the most main part of an encoding process of a polar code is aboutselection of information bit locations, that is, determining of aninformation bit sequence number set. A process of selecting theinformation bit sequence number set is described below based oncharacteristics of the mother code sequence provided in this embodimentof this application.

Optionally, in an embodiment, the determining, by the sending device, aninformation bit sequence number set from the at least one mother codesequence based on a code length of a target polar code includes:

determining, by the sending device, the information bit sequence numberset from the at least one mother code sequence based on a quantity K ofinformation bits in the target polar code or a quantity F of fixed bitsin the target polar code.

In the polar encoding process, a polar code includes the followingparts: information bits, fixed bits (or referred to as frozen bits), andpunctured bits. For example, a mother code length of the polar code isN, and then N=K+F+P, where K is a quantity of information bits, F is aquantity of fixed bits, and P is a quantity of bits that may bepunctured in a rate matching process.

In this embodiment of this application, the quantity K of theinformation bits is a quantity of non-fixed bits. When there is a checkbit, K in this specification also includes the check bit.

Optionally, in an embodiment, the determining, by the sending device, aninformation bit sequence number set from the at least one mother codesequence based on a code length of a target polar code includes:

determining, by the sending device, the information bit sequence numberset from the at least one mother code sequence based on a quantity K ofinformation bits in the target polar code or a quantity F of fixed bitsin the target polar code.

In this embodiment of this application, the information bit sequencenumber set may be determined based on the quantity K of the informationbits in the target polar code or the quantity of the fixed bits in thetarget polar code.

It should be noted that, any sequence number in the mother code sequencein this embodiment of this application is a sequence number that is notto be punctured in the polar encoding process.

(1) The information bit sequence number set is determined based on thequantity K of the information bits.

Specifically, a manner in which the sending device determines theinformation bit sequence number set varies with different mother codesequences prestored in the sending device and the receiving device.

Case 1

The sending device and the receiving device prestore a maximum mothercode sequence.

It should be understood that, the maximum mother code sequence herein isa mother code sequence with a maximum code length that can be supportedby a communications system including the sending device and thereceiving device. A code length of the maximum mother code sequence isdenoted as L below. For example, L=32, 128, or 1024.

For ease of description, a detailed process of polar encoding and polardecoding provided in this application is described in the followingembodiments by using L=32 as an example.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes:

selecting, by the sending device based on the quantity K of theinformation bits, non-punctured sequence numbers less than or equal to Nfrom a maximum mother code sequence in the at least one mother codesequence in descending order of reliability as a mother code sequence ofthe target polar code; and

determining, by the sending device, the information bit sequence numberset based on the mother code sequence of the target polar code, where Nis a mother code length of the target polar code.

It should be understood that, if sequence numbers, corresponding topolarized channels, in the mother code sequence start from 1, sequencenumbers less than or equal to N should be selected. If sequence numbers,corresponding to polarized channels, in the mother code sequence startfrom 0, sequence numbers less than N should be selected.

For ease of description, L=32 is used as an example, sorting isperformed in ascending order of reliability of polarized channels, andit is assumed that the maximum mother code sequence is:

[0, 1, 2, 4, 8], {16, 3}, {5, 6, 9, 10}, {17, 12}, {18, 20, 7, 24, 11,13}, {19, 14}, [21, 22, 25, 26], {28, 15}, [23, 27, 29, 30, 31].

Herein, a symbol { } represents a set, and [ ] represents a sequence.

If the mother code length of the target polar code is N=16, and thequantity of the information bits is K=7:

First, non-punctured sequence numbers less than or equal to N areselected from the maximum mother code sequence in descending order ofreliability, to obtain the mother code sequence with N=16 of the targetpolar code, that is, {15}, {14}, {7, 11, 13}, {12}, {5, 6, 9, 10}, {3},[0, 1, 2, 4, 8]. Then the information bit sequence number set isselected from the non-punctured sequence numbers less than or equal toN. For example, if selection is performed in descending order ofreliability, a sequence obtained after seven sequence numbers areselected should be {15}, {14}, {7, 11, 13}, {12}, [10]. That is, theinformation bit sequence number set is {15, 14, 13, 11, 7, 12, 10}.

Certainly, sequence numbers 13, 11, and 7 are in a same subset of themaximum mother code sequence, and therefore reliability of polarizedchannels corresponding to the three sequence numbers is not ordered. Inaddition, the last sequence number 10 is selected from the subsequence{5, 6, 9, 10} of the maximum mother code sequence. Because reliabilityof polarized channels corresponding to the sequence numbers 5, 6, 9, and10 in the subset is not ordered, the sequence number 10 is selected inthe foregoing example. For how to select a sequence number havingrelatively high reliability from a subset, an online computing or tablereading manner may be used. The following provides a detaileddescription.

It may be understood that, in a process of selecting a mother codesequence of a polar code, if there is a subset having one sequencenumber, and a subsequence is right before the subset, the sequencenumber in the subset may be included in the subsequence right before thesubset. Alternatively, if a subsequence is right behind a subset havingone sequence number, the sequence number in the subset may be includedin the subsequence right behind the subset. Certainly, if subsequencesare right before and right behind the subset, the subset and thesubsequences right before and behind the subset may be combined into onesequence.

For example, a mother code sequence, selected from the foregoing mothercode sequence, of a target polar code is {15}, {14}, {7, 11, 13}, {12},{5}. The subset {5} is right behind {12}. Because reliability sorting ofsequence numbers of the two subsets is definite, the subsets {12} and{5} may be combined into one sequence. Therefore, the severalsubsequences or subsets may also be represented by {15}, {14}, {7, 11,13}, [12, 5]. Similarly, if two adjacent subsets each have one sequencenumber, because sorting of the two subsets corresponds to differentreliability, the two subsets may be combined into one sequence. Forexample, in this example, {15} and {14} may be combined into asubsequence [15, 14]. In this case, the mother code sequence of thetarget polar code may also be represented by [15, 14], {7, 11, 13}, [12,5].

In another possible implementation, when selecting the information bitsequence number set from the maximum mother code sequence based on thequantity K of the information bits, the sending device may directlyselect, from the maximum mother code sequence, K sequence numbers lessthan the length of the mother code of the target polar code. A setincluding the K sequence numbers is the information bit sequence numberset.

For example, the mother code sequence with N=32 is the maximum mothercode sequence. It is assumed that the length of the mother code of thetarget polar code is 16, and the quantity of the information bits is 7.Then the sending device may directly select seven sequence numbers fromthe maximum mother code sequence in descending order of reliability,instead of first selecting a mother code sequence of the target polarcode from the maximum mother code sequence, and then selecting sevensequence numbers from the mother code sequence of the target polar codein descending order of reliability as an information bit sequence numberset.

For example, the sending device directly selects, in descending order ofreliability, seven sequence numbers less than 16 from the maximum mothercode sequence with the code length of 32. The seven sequence numbers are15, 14, 13, 11, 7, 12, and 10 in sequence. In other words, theinformation bit sequence number set is {15, 14, 13, 11, 7, 12, 10}.

The foregoing mainly describes how to select a mother code sequence of atarget polar code from a maximum mother code sequence. After the mothercode sequence of the target polar code is determined, an information bitsequence number set may be further selected from the mother codesequence of the target polar code. The following describes how to selectthe information bit sequence number set from the mother code sequence ofthe target polar code.

Case 2

The sending device and the receiving device prestore a plurality ofmother code sequences rather than a maximum mother code sequence.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes:

when K=M₁, selecting, by the sending device in descending order ofreliability, the first M₁ non-punctured sequence numbers from the mothercode sequence of the target polar code as the information bit sequencenumber set, where M₁ is a quantity of sequence numbers in the first atleast one subsequence or subset in the mother code sequence of thetarget polar code in descending order of reliability, M₁>1, and M₁ is aninteger.

The mother code sequence with the code length of 32 is still used as anexample. Herein, it is assumed that the code length of the target polarcode is N=32, and the mother code sequence of the target polar code is[0, 1, 2, 4, 8], {16, 3}, {5, 6, 9, 10}, {17, 12}, {18, 20, 7, 24, 11,13}, {19, 14}, [21, 22, 25, 26], {28, 15}, [23, 27, 29, 30, 31].

Herein, for all subsequences or subsets of the mother code sequence withN=32 of the polar code, quantities of sequence numbers in thesubsequences or the subsets are denoted as P₁, P₂, . . . , P_(i) inascending order of reliability. In the foregoing example, i=9, and P₁=5,P₂=2, P₃=4, and so on.

If the code length of the target polar code is N=32, and K=7, K=P₉+P₈.In other words, the quantity K of the information bits is exactly equalto a sum of quantities of sequence numbers in several subsequences orsubsets sorted in descending order of reliability in the mother codesequence of the target polar code. Herein, M₁=P₉+P₈. In other words, asum of quantities of all sequence numbers in several subsequences orsubsets sorted in the front of the mother code sequence in descendingorder of reliability is exactly equal to K. Certainly, the “several”herein may be any quantity, for example, 1, 2, or n (n<N and N is aninteger).

In this case, the sending device may directly use sequence numbers inthe several subsequences or subsets as an information bit sequencenumber set. Therefore, when N=32 and K=7, the information bit sequencenumber set determined by the sending device is {I₉, I₈}={28, 15, 23, 27,29, 30, 31}.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity K of information bits in the targetpolar code includes:

when M₁<K≤M₂, selecting, by the sending device in descending order ofreliability, the first M₁ non-punctured sequence numbers from the mothercode sequence of the target polar code as a first sequence number set,where M₁ is a quantity of sequence numbers in the first at least onesubsequence or subset in the mother code sequence of the target polarcode in descending order of reliability, M₂>M₁, and M₁ and M₂ arepositive integers;

selecting, by the sending device in descending order of reliability fromnon-punctured sequence numbers in a subsequence or a subset adjacent toa subsequence or a subset in which the M₁ non-punctured sequence numbersare located, (K−M₁) sequence numbers as a second sequence number set;and

determining sequence numbers in the first sequence number set and thesecond sequence number set as the information bit sequence number set.

In such a case, in descending order of reliability, a sum of quantitiesof sequence numbers in the first W subsequences or subsets in the mothercode sequence is less than K, but a sum of quantities of sequencenumbers in the first W+1 subsequences or subsets is greater than K. Inthis case, the sequence numbers in the first W subsequences or subsetsin the mother code sequence are first determined as a first sequencenumber set. Then (K−M₁) sequence numbers are selected from the(W+1)^(th) subsequence or subset in descending order of reliability as asecond sequence number set. Finally, the first sequence number set andthe second sequence number set are combined, and an obtained set is aninformation bit sequence number set.

The mother code sequence with the code length of 32 is still used as anexample for description.

If the mother code length of the target polar code is N=32, and K=9,P₉+P₈<K<P₉+P₈+P₇. In other words, the quantity K of the information bitsis not a sum of quantities of sequence numbers in several subsequencesor subsets in the mother code sequence.

In this case, the sending device first selects all sequence numbers insubsequences or subsets I₉ and I₈ corresponding to P₉ and P₈ as a firstsequence number set. The first sequence number set is {23, 27, 29, 30,31, 28, 15}. Then the sending device selects, from a subsequence or asubset adjacent to a subsequence or a subset having lower reliability inI₉ and I₈, (K−P₉−P₈) sequence numbers having highest reliability as asecond sequence number set. In the foregoing example, I₈ has lowerreliability in I₉ and I₈, and I₇ is adjacent to I₈. Therefore, thesending device needs to select (K−P₉−P₈) sequence numbers from I₇ as thesecond sequence number set.

Optionally, in an embodiment, a second subsequence is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and

the selecting, by the sending device in descending order of reliabilityfrom non-punctured sequence numbers in a subsequence or a subsetadjacent to a subsequence or a subset in which the M₁ non-puncturedsequence numbers are located, (K−M₁) sequence numbers as a secondsequence number set includes:

selecting, by the sending device in descending order of reliability,(K−M₁) sequence numbers from non-punctured sequence numbers in thesecond subsequence as the second sequence number set.

Specifically, if I₇ is a subsequence, (K−P₉−P₈) sequence numbers havinghighest reliability are directly selected as a second sequence numberset. For example, in the mother code sequence with N=32, I₇ is asubsequence, and then (9-5-2) sequence numbers having highestreliability are directly selected from I₇ as a second sequence numberset. The second sequence number set is {25, 26}.

Optionally, in an embodiment, a third subset is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and

the selecting, by the sending device in descending order of reliabilityfrom non-punctured sequence numbers in a subsequence or a subsetadjacent to a subsequence or a subset in which the M₁ non-puncturedsequence numbers are located, (K−M₁) sequence numbers as a secondsequence number set includes:

selecting, by the sending device in descending order of reliability inan online computing or table reading manner, (K−M₁) sequence numbersfrom non-punctured sequence numbers in the third subset as the secondsequence number set.

Specifically, if I₇ is a subset, the sending device needs to select,from I₇ in the online computing or table reading manner, (9-5-2)sequence numbers having highest reliability as a second sequence numberset.

Further optionally, in an embodiment, the sending device furtherprestores a first sorting table, and the first sorting table recordsreliability sorting of the non-punctured sequence numbers in the thirdsubset, and

the selecting, by the sending device in descending order of reliabilityin a table reading manner, (K−M₁) non-punctured sequence numbers fromthe third subset as the second sequence number set includes:

selecting, by the sending device in descending order of reliability,(K−M₁) non-punctured sequence numbers from the first sorting table asthe second sequence number set.

Specifically, if a sequence number having relatively high reliability isselected from a subset in the online computing manner, the sendingdevice may use a construction algorithm for selection. The constructionalgorithm used by the sending device may be unrelated to a channel, ormay be related to a code rate or a code length, and is not limitedherein. Certainly, an online computing method in the prior art may alsobe used. For example, a Gaussian approximation algorithm and apolarization weighting construction algorithm in the prior art may beused.

If a sequence number having relatively high reliability is selected froma subset in the table reading manner, the sending device may furtherstore a table for possible sorting in the subset. For example, differentsorting of sequence numbers in the subset is stored correspondinglydepending on different code lengths. During polar encoding,corresponding sorting is selected based on an actual code length.Alternatively, a table is stored depending on another factor (forexample, sorting in different algorithms). This is not limited in thisembodiment of this application.

For example, for the mother code sequence with N=32, a table storagemanner may be used for all sequence numbers in all subsets in the mothercode sequence, in which sorting of relative locations of the sequencenumbers in the subsets is stored in a table.

After the second sequence number set is determined, the first sequencenumber set and the second sequence number set are combined into aninformation bit sequence number set. To be specific, the information bitsequence number set is {23, 27, 29, 30, 31, 28, 15}+{25, 26}={15, 23,25, 26, 28, 27, 29, 30, 31}.

The following describes how to select the information bit sequencenumber set from the mother code sequence of the target polar code basedon the quantity F of the fixed bits in the target polar code.

(2) The information bit sequence number set is determined based on thequantity F of the fixed bits.

A process of determining the information bit sequence number set basedon the quantity F of the fixed bits is similar to the process ofdetermining the information bit sequence number set based on thequantity K of the information bits. The following provides a briefdescription.

First described is how to select the information bit sequence number setbased on F in the foregoing case 1, that is, when the sending device andthe receiving device prestore a maximum mother code sequence.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes:

selecting, by the sending device based on the quantity F of the fixedbits in ascending order of reliability, non-punctured sequence numbersless than or equal to N from a maximum mother code sequence in the atleast one mother code sequence as a mother code sequence of the targetpolar code;

determining, by the sending device, a fixed bit sequence number setbased on the mother code sequence of the target polar code, where N is amother code length of the target polar code; and

determining, by the sending device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

It may be understood that, when the sending device and the receivingdevice store a maximum mother code sequence, the sending device firstselects, from the maximum mother code sequence in ascending order ofreliability, non-punctured sequence numbers less than or equal to N as amother code sequence of the target polar code, then determines a fixedbit sequence number set from the mother code sequence of the targetpolar code, and finally determines a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

An example is used below for description.

That a length of the maximum mother code sequence is L=32 is still usedas an example. It is assumed that the maximum mother code sequence is:

[0, 1, 2, 4, 8], {16, 3}, {5, 6, 9, 10}, {17, 12}, {18, 20, 7, 24, 11,13}, {19, 14}, [21, 22, 25, 26], {28, 15}, [23, 27, 29, 30, 31].

If the mother code length of the target polar code is N=16, and thequantity of the fixed bits is F=7:

First, non-punctured sequence numbers less than or equal to N areselected from the maximum mother code sequence, and are sorted inascending order of reliability, to obtain a mother code sequence of thetarget polar code, that is, [0, 1, 2, 4, 8], {3}, {5, 6, 9, 10}, {12},{7, 11, 13}, {14}, {15}. Then seven sequence numbers are selected fromthe mother code sequence in ascending order of reliability, to obtain asequence number set (denoted as a set C). That is, the set C={[0, 1, 2,4, 8], {3}, {5, 6}}={0, 1, 2, 4, 8, 3, 5, 6}. Herein, a set includingall sequence numbers in the mother code sequence of the target polarcode is denoted as a set D, and the set D={0, 1, 2, 4, 8, 3, 5, 6, 9,10, 12, 7, 11, 13}. Finally, a complement of the set C relative to theset D is determined as an information bit sequence number set. In thiscase, the information bit sequence number set is {5, 6, 9, 10, 12, 7,11, 13, 14, 15}.

In another possible implementation, when selecting the fixed bitsequence number set from the maximum mother code sequence based on thequantity F of the fixed bits, the sending device may directly select,from the maximum mother code sequence in ascending order of reliability,F sequence numbers less than the length of the mother code of the targetpolar code, where the set including the F sequence numbers is the fixedbit sequence number set, instead of first selecting a mother codesequence of the target polar code from the maximum mother code sequence,and then selecting F sequence numbers from the mother code sequence ofthe target polar code in ascending order of reliability as a fixed bitsequence number set.

For example, the sending device directly selects, in ascending order ofreliability, seven sequence numbers less than 16 from the maximum mothercode sequence with the code length of 32. The seven sequence numbers are0, 1, 2, 4, 8, 3, and 5 in sequence. In other words, the fixed bitsequence number set is {0, 1, 2, 4, 8, 3, 5}.

Then described is how to select the information bit sequence number setbased on F in the foregoing case 2, that is, when the sending device andthe receiving device prestore a plurality of mother code sequencesrather than a maximum mother code sequence.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes:

when F=M₃, selecting, by the sending device in ascending order ofreliability, the first M₃ non-punctured sequence numbers from the mothercode sequence of the target polar code as a fixed bit sequence numberset, where M₃ is a quantity of sequence numbers in the first at leastone subsequence or subset in the mother code sequence of the targetpolar code in ascending order of reliability, M₃≥1, and M₃ is aninteger; and

determining, by the sending device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

Actually, a process of selecting the information bit sequence number setfrom the mother code sequence of the target polar code based on thequantity F of the fixed bits in the target polar code is the same as theprocess, in the foregoing embodiment, of selecting the mother codesequence of the target polar code from the maximum mother code sequenceand then selecting the information bit sequence number set from themother code sequence.

The mother code sequence with the code length of 32 is used as anexample for description.

Herein, quantities of sequence numbers in subsequences or subsetsincluded in the mother code sequence of the target polar code aresequentially denoted as P₁, P₂, . . . , P_(n) in ascending order ofreliability of polarized channels.

That is, if F=M₃=P₁+P₂+ . . . +P₁ (i=1, 2, . . . , n), it may bedetermined that a fixed bit set is {I₁, I₂, . . . , I_(i)}. A complementof the fixed bit set relative to a set including all the sequencenumbers in the mother code sequence is an information bit sequencenumber set.

For example, N=32, and F=13. In this case, a complement of the fixed bitset (denoted as the set C) C={[0, 1, 2, 4, 8], {16, 3}, {5, 6, 9, 10},{17, 12}} relative to the mother code sequence is an information bitsequence number set. The information bit sequence number set is {7, 11,13, 14, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31}.

Optionally, in an embodiment, the determining, by the sending device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes:

when M₃<F≤M₄, selecting, by the sending device in ascending order ofreliability, the first M₃ non-punctured sequence numbers from the mothercode sequence of the target polar code as a third sequence number set,where M₃ is a quantity of sequence numbers in the first at least onesubsequence or subset in the mother code sequence of the target polarcode in ascending order of reliability, M₄>M₃, and M₃ and M₄ arepositive integers;

selecting, by the sending device in ascending order of reliability froma subsequence or a subset adjacent to a subsequence or a subset in whichthe M₃ non-punctured sequence numbers are located, (F−M₃) sequencenumbers as a fourth sequence number set;

determining, by the sending device, sequence numbers in the thirdsequence number set and the fourth sequence number set as a fixed bitsequence number set; and

determining, by the sending device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

That is, if M₃<F<M₄ and M₃=P₁+P₂+ . . . P_(i), M₄=P₁+P₂+ . . .P_(i)+P_(i+1).

Specifically, the sending device may use different selection methodsdepending on whether I_(i+1) corresponding to P_(i+1) is a subsequenceor a subset.

If I_(i+1) is a subsequence, the sending device may select allnon-punctured sequence numbers from I₁, I₂ . . . , I_(i), then select(F−P₁−P₂− . . . P_(i)=F−M₃) non-punctured sequence numbers having lowestreliability from and combine the sequence numbers into a fixed bitsequence number set. Finally, the sending device determines a complementof the fixed bit sequence number set relative to a set including allsequence numbers in the mother code sequence as an information bitsequence number set.

If I_(i+1) is a subset, the sending device may first select allnon-punctured sequence numbers from I₁, I₂ . . . , I_(i). This processis the same as the process in a case in which I_(i+1) is a subsequence.A difference lies in that when (F−M₃) non-punctured sequence numbers areselected from the subset I_(i+1), because reliability of polarizedchannels corresponding to sequence numbers in the subset I_(i+1) is notordered, the sending device needs to select the (F−M₃) non-puncturedsequence numbers from the subset I_(i+1) in an online computing or tablereading manner. Finally, the selected (F−M₃) non-punctured sequencenumbers and all the non-punctured sequence numbers selected from I₁, I₂. . . , I_(i) are combined into a fixed bit sequence number set.

Optionally, in an embodiment, a fourth subset is adjacent to thesubsequence or the subset in which the M₃ non-punctured sequence numbersare located, and

the selecting, by the sending device in ascending order of reliabilityfrom a subsequence or a subset adjacent to a subsequence or a subset inwhich the M₃ non-punctured sequence numbers are located, (F−M₃) sequencenumbers as a fourth sequence number set includes:

selecting, by the sending device in ascending order of reliability in anonline computing or table reading manner, (F−M₃) sequence numbers fromnon-punctured sequence numbers in the fourth subset as the fourthsequence number set.

For the online computing or table reading manner used herein, refer tothe foregoing description of determining an information bit sequencenumber set based on a quantity K of information bits. Details are notdescribed herein again.

Optionally, in an embodiment, the sending device further prestores asecond sorting table, and the second sorting table records reliabilitysorting of the non-punctured sequence numbers in the fourth subset, and

the selecting, by the sending device in ascending order of reliabilityin a table reading manner, (F−M₃) sequence numbers from non-puncturedsequence numbers in the fourth subset as the fourth sequence number setincludes:

selecting, by the sending device in ascending order of reliability,(F−M₃) non-punctured sequence numbers from the second sorting table asthe fourth sequence number set.

130. The sending device performs polar encoding on information bitsbased on the information bit sequence number set.

In step 130, the sending device performs polar encoding on theinformation bit based on the selected information bit sequence numberset, to obtain an encoded sequence. Step 130 may be the same as theprior art, and is not limited herein.

It should be understood that, the information bits herein areto-be-encoded bits that the sending device needs to send to thereceiving device. The encoded sequence is a code word obtained afterpolar encoding is performed on the to-be-encoded bits.

Subsequently, the sending device sends the encoded sequence to thereceiving device. Correspondingly, the receiving device performs steps140 and 150.

140. The receiving device obtains a to-be-decoded sequence.

150. The receiving device decodes the to-be-decoded sequence based onthe code length of the target polar code and the at least one mothercode sequence.

It should be understood that, the sending device performs polar encodingon the information bits, to obtain the encoded sequence. The encodedsequence is sent by the sending device, and then a sequence received bythe receiving device is the to-be-decoded sequence.

In step 150, after correctly decoding the to-be-decoded sequence, thereceiving device obtains the information bits.

It may be understood that, the sending device and the receiving deviceprestore same mother code sequence information. Moreover, a mother codesequence and an encoding parameter that are used for a polar code ofeach code length are pre-agreed on by the sending device and thereceiving device. Therefore, after obtaining the to-be-decoded sequence(or to-be-decoded code word), the receiving device may obtain, throughcorrect decoding by using a cyclic redundancy check (CRC), theinformation bits sent by the sending device to the receiving device.

Actually, a process of decoding the obtained to-be-decoded sequence bythe receiving device is exactly inverse to the process of performingpolar encoding on the information bit based on the information bitsequence number set by the sending device. Because fixed bits arepre-agreed on by the sending device and the receiving device, that is,are known, a key to the process of decoding the to-be-decoded sequenceby the receiving device is determining the information bit sequencenumber set.

Optionally, in an embodiment, the decoding, by the receiving device, theto-be-decoded sequence based on the code length of the target polar codeand the at least one mother code sequence includes: determining, by thereceiving device, an information bit sequence number set based on the atleast one mother code sequence and a quantity K of information bits inthe target polar code or a quantity F of fixed bits in the target polarcode; and decoding, by the receiving device, the to-be-decoded sequencebased on the information bit sequence number set.

(1) The receiving device determines the information bit sequence numberset based on the quantity K of the information bits.

Optionally, in an embodiment, the determining, by the receiving device,the information bit sequence number set based on the mother codesequence of the target polar code includes:

when K=M₁, selecting, by the receiving device in descending order ofreliability, the first M₁ non-punctured sequence numbers from the mothercode sequence of the target polar code as the information bit sequencenumber set, where M₁ is a quantity of sequence numbers in the first atleast one subsequence or subset in the mother code sequence of thetarget polar code in descending order of reliability, M₁≥1, and M₁ is aninteger.

Optionally, in an embodiment, the determining, by the receiving device,the information bit sequence number set based on the mother codesequence of the target polar code includes:

when M₁<K≤M₂, selecting, by the receiving device in descending order ofreliability, the first M₁ non-punctured sequence numbers from the mothercode sequence of the target polar code as a first sequence number set,where M₁ is a quantity of sequence numbers in the first at least onesubsequence or subset in the mother code sequence of the target polarcode in descending order of reliability, M₂>M₁, and M₁ and M₂ arepositive integers;

selecting, by the receiving device in descending order of reliabilityfrom non-punctured sequence numbers in a subsequence or a subsetadjacent to a subsequence or a subset in which the M₁ non-puncturedsequence numbers are located, (K−M₁) sequence numbers as a secondsequence number set; and

determining, by the receiving device, sequence numbers in the firstsequence number set and the second sequence number set as theinformation bit sequence number set.

Optionally, in an embodiment, a third subset is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and

the selecting, by the receiving device in descending order ofreliability from non-punctured sequence numbers in a subsequence or asubset adjacent to a subsequence or a subset in which the M₁non-punctured sequence numbers are located, (K−M₁) sequence numbers as asecond sequence number set includes:

selecting, by the receiving device in descending order of reliability inan online computing or table reading manner, (K−M₁) sequence numbersfrom non-punctured sequence numbers in the third subset as the secondsequence number set; and

determining, by the receiving device, the first sequence number set andthe second sequence number set as the information bit sequence numberset.

Optionally, in an embodiment, a second subsequence is adjacent to thesubsequence or the subset in which the M₁ non-punctured sequence numbersare located, and

the selecting, by the receiving device in descending order ofreliability from non-punctured sequence numbers in a subsequence or asubset adjacent to a subsequence or a subset in which the M₁non-punctured sequence numbers are located, (K−M₁) sequence numbers as asecond sequence number set includes:

selecting, by the receiving device in descending order of reliability,(K−M₁) sequence numbers from non-punctured sequence numbers in thesecond subsequence as the second sequence number set.

Optionally, in an embodiment, the receiving device further prestores afirst sorting table, and the first sorting table records reliabilitysorting of the non-punctured sequence numbers in the third subset, and

the selecting, by the receiving device in descending order ofreliability in an online computing or table reading manner, (K−M₁)sequence numbers from non-punctured sequence numbers in the third subsetas the second sequence number set includes:

selecting, by the receiving device in descending order of reliability,(K−M₁) non-punctured sequence numbers from the first sorting table asthe second sequence number set.

Specifically, in the foregoing embodiment, a process of determining, bythe receiving device, the information bit sequence number set from theprestored at least one mother code sequence based on the quantity K ofthe information bits is the same as the foregoing process ofdetermining, by the sending device, the information bit sequence numberset based on the quantity K of the information bits. Therefore,reference may be made to the foregoing description, and details are notdescribed herein again.

(2) The receiving device determines the information bit sequence numberset based on the quantity F of the fixed bits.

Optionally, in an embodiment, the determining, by the receiving device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes:

when F=M₃, selecting, by the receiving device in ascending order ofreliability, the first M₃ non-punctured sequence numbers from the mothercode sequence of the target polar code as a fixed bit sequence numberset, where M₃ is a quantity of sequence numbers in the first at leastone subsequence or subset in the mother code sequence of the targetpolar code in ascending order of reliability, M₃>1, and M₃ is aninteger; and

determining, by the receiving device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

Optionally, in an embodiment, the determining, by the receiving device,the information bit sequence number set from the at least one mothercode sequence based on a quantity F of fixed bits in the target polarcode includes:

when M₃<F≤M₄, selecting, by the receiving device in ascending order ofreliability, the first M₃ non-punctured sequence numbers from the mothercode sequence of the target polar code as a third sequence number set,where M₃ is a quantity of sequence numbers in the first at least onesubsequence or subset in the mother code sequence of the target polarcode in ascending order of reliability, M₄>M₃, and M₃ and M₄ arepositive integers;

selecting, by the receiving device in ascending order of reliabilityfrom a subsequence or a subset adjacent to a subsequence or a subset inwhich the M₃ non-punctured sequence numbers are located, (F−M₃) sequencenumbers as a fourth sequence number set;

determining, by the receiving device, sequence numbers in the thirdsequence number set and the fourth sequence number set as a fixed bitsequence number set; and

determining, by the receiving device, a complement of the fixed bitsequence number set relative to a set including sequence numbers in themother code sequence of the target polar code as the information bitsequence number set.

Optionally, in an embodiment, a fourth subset is adjacent to thesubsequence or the subset in which the M₃ non-punctured sequence numbersare located, and

the selecting, by the receiving device in ascending order of reliabilityfrom a subsequence or a subset adjacent to a subsequence or a subset inwhich the M₃ non-punctured sequence numbers are located, (F−M₃) sequencenumbers as a fourth sequence number set includes:

selecting, by the receiving device in ascending order of reliability inan online computing or table reading manner, (F−M₃) sequence numbersfrom non-punctured sequence numbers in the fourth subset as the fourthsequence number set.

Optionally, in an embodiment, the receiving device further prestores asecond sorting table, and the second sorting table records reliabilitysorting of the non-punctured sequence numbers in the fourth subset, and

the selecting, by the receiving device in ascending order of reliabilityin a table reading manner, (F−M₃) sequence numbers from non-puncturedsequence numbers in the fourth subset as the fourth sequence number setincludes:

selecting, by the receiving device in ascending order of reliability,(F−M₃) non-punctured sequence numbers from the second sorting table asthe fourth sequence number set.

Similarly, a process of determining, by the receiving device, theinformation bit sequence number set from the prestored at least onemother code sequence based on the quantity F of the fixed bits is thesame as the foregoing process of determining, by the sending device, theinformation bit sequence number set based on the quantity F of the fixedbits. Therefore, for a detailed process in the foregoing embodiment,refer to the foregoing description of determining, by the sendingdevice, the information bit sequence number set from the prestored atleast one mother code sequence based on the quantity F of the fixedbits. Details are not described herein again.

The following is an example of a mother code sequence provided in anembodiment of this application, with a code length of 1024. The mothercode sequence is shown as follows:

[0, 1, 2, 4, 8, 16, 3, 32, 5, 6, 9, 64, 10, 17, 12, 18, 128, 33, 20, 34,7, 24, 36, 65, 11, 256, 66, 40, 13, 19, 68, 14, 129, 48, 21, 72, 130,35, 22], {25, 512}, [132], {37, 80}, [26], {38, 257, 67, 136}, [41, 28,258, 96, 69, 42], {15, 144, 49, 260}, [70, 44, 73, 131, 50], {23, 264,74, 160, 513}, [133, 52, 81], {27, 76, 514, 134, 39, 272, 82}, [137,56], {29, 516, 259, 192}, [97, 138, 84, 43], {30, 145, 288, 98, 261, 71,520, 140, 45, 88}, [146], {51, 262}, [100], {46, 265, 75, 161, 528, 148,53, 320}, [266, 104], {77, 162, 515, 135, 54, 273, 83, 152, 57, 268, 78,544, 164, 517}, [274, 193, 112, 139, 85, 58], {31, 518, 384, 289},[194], {99, 276, 168, 86, 521}, [141], {60, 89, 147}, [290], {576, 263,196, 101, 522, 142, 47, 280, 90, 176, 529, 149, 292, 102, 321, 524, 267,200, 105, 92, 163, 530, 150, 55, 322, 153, 296, 106, 269, 79, 640, 545,165, 532, 275, 208, 113, 154, 324, 59, 270, 108, 546, 166, 519, 385,304, 195, 114, 277, 169, 87, 536, 156, 61, 328, 548, 386, 291, 224,577}, [278, 197], {170, 116, 523, 143, 62, 281, 91, 177, 768, 578, 388,293, 198, 103, 552, 336, 172, 525}, [282, 201, 120], {93, 178, 531,151}, [294], {580, 323, 526, 392, 297, 202, 107, 284, 94, 641, 560, 180,533, 209, 352, 155, 325, 298, 584, 271, 204, 109, 642, 547, 167, 534,400, 305, 210, 115, 184, 326, 537, 157, 300, 110, 329, 644, 549, 387,306, 225, 592, 279, 212, 171, 117, 538, 158, 63, 330, 550, 416, 769,226, 579, 389, 308, 199, 648, 118, 553, 337, 173, 540, 283, 216, 121,332, 179, 770, 608, 390, 295, 228, 581, 554, 338, 174, 527, 393, 312,203, 122, 285, 95, 656, 561, 181, 772, 582, 448, 353}, [556, 394, 340],{299, 232, 585, 286, 205, 124, 643, 562, 182, 535, 401, 211, 354, 185,327, 776, 586, 396, 301, 206, 111, 672, 344, 645, 564, 402, 307, 240,593, 213, 186, 356, 539, 159, 302, 588, 331, 646, 551, 417, 784, 227,594, 404, 309, 214, 649, 119, 568, 188, 541, 217, 360, 333, 418, 771,704, 609, 391, 310, 229, 650, 596}, [555], {339, 175, 542, 408, 313,218, 123, 334, 657, 800, 610, 420, 773, 230, 583, 449, 368, 652, 557,395, 341, 314, 233, 600, 287, 220, 125, 658, 563, 183, 774, 612, 450,355, 558, 424, 342, 777, 234, 587, 397, 316, 207, 126, 673, 345, 660,565, 403, 241, 832, 452, 187, 357, 778, 616, 398, 303, 236, 589, 674,346, 647, 566, 432, 785, 242, 595, 405, 215, 664, 358, 569, 189, 780,590, 456, 361, 676, 348, 419, 786, 705, 624, 406, 311, 244, 651, 597,570, 190, 543, 409, 219, 362, 335, 896, 801, 706, 611, 421, 788, 231,680, 598, 464, 369, 653}, [572, 410], {315, 248, 601, 221, 364, 659,802, 422, 775, 708}, [613, 451], {370, 654, 559, 425, 343, 792, 235,602, 412, 317, 222, 127, 688, 661, 804, 614, 480, 833, 453, 426, 372,779, 712, 617, 399, 318, 237, 604, 675, 347, 662, 567, 433, 243, 834,454, 665, 359, 808, 618, 428, 781, 238, 591, 457, 376, 677, 349, 434,787, 720, 625, 407, 245, 666, 836, 571, 191, 782, 620, 458, 363, 678,350, 897, 816, 707, 626, 436, 789, 246, 681, 599, 465, 668, 573, 411,249, 840, 460, 365, 898, 803, 736, 423, 790, 709, 682, 628, 466, 371,655, 574, 440, 793, 250, 603, 413, 223, 366, 689, 900, 805, 710, 615,481, 848, 684}, [468], {427, 373, 794, 713, 632, 414, 319, 252, 605,690, 663, 806, 482, 835, 455, 904, 374, 809, 714, 619, 429, 796, 239,606, 472, 377, 692, 435, 721, 864, 484, 667, 837, 810, 430, 783, 716,621, 459, 378, 679, 351, 912, 817, 722, 627, 437, 247, 696, 838, 669,812, 622, 488, 841, 461, 380, 899, 818, 737, 438, 791, 724}, [683, 629,467], {670, 575, 441, 251, 842, 462, 367, 928, 738, 901, 820, 711, 630,496, 849, 685, 469, 442, 795, 728, 633, 415, 253, 844, 691, 902, 807,740, 483, 850, 686, 470, 905, 375, 824, 715, 634, 444, 797, 254, 607,473, 693, 960, 865, 485, 906, 852, 811, 744, 431, 798, 717, 636, 474,379, 694, 913, 723, 866, 486, 697, 839, 908, 813, 718, 623, 489, 856,476, 381, 914, 819, 752, 439, 725, 698, 868, 671, 814, 490, 843, 463,382, 929, 739, 916, 821, 726, 631, 497, 700, 443}, [729], {872, 492,845, 930}, [903, 822, 741], {498, 851, 687, 471, 920, 825, 730, 635,445, 255, 846, 932, 742, 961, 880, 500, 907, 853}, [826, 745], {446,799, 732, 637, 475, 695, 962, 867, 487, 936, 854, 746, 909, 828, 719,638, 504, 857, 477, 915, 753, 964, 699, 869, 910, 815, 748, 491, 858,478, 383, 944, 754, 917, 727, 870, 701, 968, 873, 493, 860, 931, 918,823, 756, 499, 702, 921, 731, 874, 494, 847, 933, 743, 976, 881, 501,922, 827, 760, 447}, [733], {876, 934, 963}, [882], {502, 937, 855, 747,924}, [829], {734, 639, 505, 992}, [965, 938, 884, 911, 830, 749], {506,859, 479, 945, 755, 966, 871, 940, 750, 969, 888, 508, 861, 946}, [919,757], {703, 970, 875, 495, 862, 948, 758, 977}, [923], {761, 972},[877], {935, 978, 883, 503, 952, 762, 925, 735, 878, 993}, [980, 939,885, 926], {831, 764, 507, 994}, [967, 886], {941, 751, 984, 889, 509,947, 996}, [942, 971, 890], {510, 863, 949, 759, 1000}, [973, 892, 950,979, 953], {763, 974, 879, 1008}, [981, 954, 927, 765, 995, 982], {887,956, 766, 985}, [997], {943, 986}, [891], {511, 998}, [1001, 988, 893,951, 1002, 975, 894, 1009, 955, 1004, 1010, 983, 957, 767, 1012, 958,987, 999, 1016, 989, 1003, 990, 895, 1005, 1011, 1006, 1013, 959, 1014,1017, 1018, 991, 1020, 1007, 1015, 1019, 1021, 1022, 1023].

As shown in the foregoing mother code sequence, { } in the mother codesequence represents a subset, and [ ] represents a subsequence. For adetailed description of the mother code sequence, refer to the foregoingdescription.

In the technical solution provided in this embodiment of thisapplication, a mother code sequence of a polar code including a sequenceand a set that are interleaved is provided, so that in a process ofperforming polar encoding and decoding by using a mother code sequencein such a form, a half-computing and half-storage manner may be used toselect information bits (that is, determine an information bit sequencenumber set). Therefore, a polar code sequence is constructed moreflexibly. In addition, disadvantages in aspects such as transmission ofmedium and small data packets, reliability, complexity, and a code ratein the prior art are overcome to some extent.

The polar encoding and decoding method provided in the embodiments ofthis application is described above in detail with reference to FIG. 1and FIG. 2. A sending device and a receiving device provided in theembodiments of this application are described below with reference toFIG. 3 to FIG. 6.

FIG. 3 is a schematic block diagram of a sending device 500 according toan embodiment of this application. Referring to FIG. 3, the sendingdevice 500 includes:

a storage unit 510, configured to prestore at least one mother codesequence, where each mother code sequence includes at least onesubsequence and at least one subset, an element in each subsequence orsubset is a sequence number of a polarized channel, each subsequence orsubset includes at least one sequence number, and relative locations ofsequence numbers in each subsequence are arranged in order ofreliability of polarized channels; and

a processing unit 520, configured to determine an information bitsequence number set from the at least one mother code sequence based ona code length of a target polar code, where

the processing unit 520 is further configured to perform polar encodingon information bits based on the information bit sequence number set.

The units in the sending device 500 provided in this embodiment of thisapplication and the foregoing other operations or functions areseparately intended to implement a corresponding procedure performed bya sending device in the polar encoding and decoding method 100 providedin the foregoing embodiment of this application. For brevity, detailsare not described herein again.

Optionally, the sending device may further include a sending unit 530,configured to send an encoded sequence to a receiving device.

FIG. 4 is a schematic block diagram of a receiving device 600 accordingto an embodiment of this application. Referring to FIG. 4, the receivingdevice 600 includes:

a storage unit 610, configured to prestore at least one mother codesequence, where each mother code sequence includes at least onesubsequence and at least one subset, an element in each subsequence orsubset is a sequence number of a polarized channel, each subsequence orsubset includes at least one sequence number, and relative locations ofsequence numbers in each subsequence are arranged in order ofreliability of polarized channels;

a receiving unit 620, configured to obtain a to-be-decoded sequence; and

a processing unit 630, configured to decode the to-be-decoded sequencebased on a code length of a target polar code and the at least onemother code sequence.

The units in the receiving device 600 provided in this embodiment ofthis application and the foregoing other operations or functions areseparately intended to implement a corresponding procedure performed bya receiving device in the polar encoding and decoding method 100provided in the foregoing embodiment of this application. For brevity,details are not described herein again.

FIG. 5 is a schematic structural diagram of a sending device 700according to an embodiment of this application. As shown in FIG. 5, thesending device 700 includes one or more processors 701, one or morememories 702, and one or more transceivers (each transceiver includes atransmitter 703 and a receiver 704). The transmitter 703 or the receiver704 is connected to one or more antennas 705, and sends or receives asignal by using the one or more antennas. The memory 702 stores acomputer program instruction (or code). The processor 701 executes thecomputer program instruction stored in the memory 702, to implement acorresponding procedure and/or operation performed by a sending devicein the polar encoding and decoding method 100 provided in the foregoingembodiment of this application. For brevity, details are not describedherein again.

It should be noted that, the sending device 500 shown in FIG. 3 may beimplemented by using the sending device 700 shown in FIG. 5. Forexample, the storage unit 510 shown in FIG. 3 may be implemented byusing the memory 702. The processing unit 520 may be implemented byusing the processor 701. The sending unit 530 may be implemented byusing the transmitter 703.

Optionally, the memory 702 may be independent, or may be integrated withthe processor 701. When the processor 701 is implemented by usinghardware, for example, may be a logical circuit or an integratedcircuit, and connected to other hardware by using an interface, thememory 702 may not be needed.

FIG. 6 is a schematic structural diagram of a receiving device 800according to an embodiment of this application. As shown in FIG. 6, thereceiving device 800 includes one or more processors 801, one or morememories 802, and one or more transceivers (each transceiver includes atransmitter 803 and a receiver 804). The transmitter 803 or the receiver804 is connected to one or more antennas 805, and sends or receives asignal by using the one or more antennas. The memory 802 stores acomputer program instruction (or code). The processor 801 executes thecomputer program instruction stored in the memory 802, to implement acorresponding procedure and/or operation performed by a receiving devicein the polar encoding and decoding method 100 provided in the foregoingembodiment of this application. For brevity, details are not describedherein again.

Optionally, the memory 802 may be independent, or may be integrated withthe processor 801. When the processor 801 is implemented by usinghardware, for example, may be a logical circuit or an integratedcircuit, and connected to other hardware by using an interface, thememory 802 may not be needed.

Similarly, the receiving device 600 shown in FIG. 4 may be implementedby using the receiving device 800 shown in FIG. 6. For example, thestorage unit 610 shown in FIG. 4 may be implemented by using the memory802. The receiving unit 620 may be implemented by using the receiver 804shown in FIG. 6. The processing unit 630 may be implemented by using theprocessor 801.

In the foregoing embodiments, a processor may be a central processingunit (CPU), a microprocessor, an application-specific integrated circuit(ASIC), or one or more integrated circuits configured to control programexecution of a solution in this application. For example, the processormay include a digital signal processor device, a microprocessor device,an analog-to-digital converter, or a digital-to-analog converter. Theprocessor may distribute control and signal processing functions of amobile device among these devices based on respective functions of thesedevices. In addition, the processor may include a function of operatingone or more software programs, and the one or more software programs maybe stored in a memory.

The memory may be a read-only memory (ROM) or another type of staticstorage device, a random access memory (RAM) or another type of dynamicstorage device capable of storing information and instructions, or maybe an electrically erasable programmable read-only memory (EEPROM), acompact disc read-only memory (CD-ROM) or another compact disc storage,an optical disc storage (including a compressed optical disc, a laserdisc, an optical disc, a digital universal optical disc, a blue-rayoptical disc, and the like), a magnetic disk storage medium or anothermagnetic storage device, or any other medium capable of carrying orstoring expected program code in a form of instructions or datastructures and capable of being accessed by a computer, but is notlimited thereto. The memory may be independent, or may be integratedwith the processor.

A transceiver may include, for example, an infrared transceiver, atransceiver, a wireless universal serial bus (USB) transceiver, or aBluetooth transceiver. Although not shown, the sending device and thereceiving device can send a signal (or data) by using the transmitterand/or receive a signal (data) by using the receiver, by using acorresponding communications technology.

A person of ordinary skill in the art may be aware that, the units andalgorithm steps in the examples described with reference to theembodiments disclosed in this specification may be implemented byelectronic hardware or a combination of computer software and electronichardware. Whether the functions are performed by hardware or softwaredepends on particular applications and design constraint conditions ofthe technical solutions. A person skilled in the art may use differentmethods to implement the described functions for each particularapplication, but it should not be considered that the implementationgoes beyond the scope of this application.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the system, apparatus, and unit, reference may be made to acorresponding process in the method embodiments. Details are notdescribed herein again.

In the several embodiments provided in this application, it should beunderstood that the disclosed system, apparatus, and method may beimplemented in other manners. For example, the described apparatusembodiment is merely an example. For example, the unit division ismerely logical function division and may be other division in actualimplementation. For example, a plurality of units or components may becombined or integrated into another system, or some features may beignored or not performed. In addition, the displayed or discussed mutualcouplings or direct couplings or communication connections may beimplemented by using some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. Some or all of the units may be selected depending onactual needs to achieve the objectives of the solutions of theembodiments.

In addition, functional units in the embodiments of this application maybe integrated into one processing unit, or each of the units may existalone physically, or two or more units may be integrated into one unit.

When the functions are implemented in a form of a software functionalunit and sold or used as an independent product, the functions may bestored in a computer-readable storage medium. Based on such anunderstanding, the technical solutions of this application essentially,or the part contributing to the prior art, or some of the technicalsolutions may be implemented in a form of a software product. Thecomputer software product is stored in a storage medium, and includesseveral instructions for instructing a computer device (which may be apersonal computer, a server, a network device, or the like) to performall or some of the steps of the methods described in the embodiments ofthe present invention. The storage medium includes any medium that canstore program code, such as a USB flash drive, a removable hard disk, a(ROM), a (RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of thisapplication, but are not intended to limit the protection scope of thisapplication. Any variation or replacement readily figured out by aperson skilled in the art within the technical scope disclosed in thisapplication shall fall within the protection scope of this application.Therefore, the protection scope of the present invention shall besubject to the protection scope of the claims.

What is claimed is:
 1. A polar encoding method, wherein the methodcomprises: pre-storing, by a computing device, at least one mother codesequence, wherein each mother code sequence comprises one or moresequence numbers corresponding to one or more polarized channels,wherein the one or more sequence numbers are arranged in an ascendingorder according to reliability of the corresponding one or morepolarized channels; determining, by the computer device, a length N of afirst mother code sequence of a target polar code based on K, wherein Kis a quantity of information bits in the target polar code, K+F+P=N, Fis a quantity of fixed bits in the target polar code and P is a quantityof bits to be punctured in a rate matching process, N=2^(n), and n is apositive integer; determining, by the computing device, a set ofinformation bit sequence numbers corresponding to the K information bitsof the target polar code, by selecting K non-punctured sequence numbersin a descending order of reliability of corresponding polarized channelsfrom the first mother code sequence, wherein the first mother codesequence is obtained by selecting sequence numbers less than or equal toN from a maximum mother code sequence, and the maximum mother codesequence is one sequence of the at least one mother code sequence with amaximum length; and performing, by the computing device, polar encodingon information bits based on the set of information bit sequence numbersx ₁ ^(N) =u ₁ ^(N) ·F _(N) wherein u₁ ^(N)=u₁, u₂, u₃, . . . u_(N)) is abinary row vector with a length of N, the information bits are carriedin u₁ ^(N) according to the set of information bit sequence numbers,F_(N)=F₂ ^(⊗(log) ² ^(N)), where $F_{2} = {\begin{bmatrix}1 & 0 \\1 & 1\end{bmatrix}\mspace{14mu}{and}\mspace{14mu} F_{2}^{\otimes {({\log_{2}N})}}}$is a Kronecker product of log₂N F₂ matrices.
 2. The method according toclaim 1, a length of the maximum mother code sequence is
 1024. 3. Themethod according to claim 2, wherein the one or more sequence numbers ofthe one or more polarized channels start from 0, and sequence number 194is located in a 137^(th) location of the maximum mother code sequence.4. The method according to claim 2, wherein the one or more sequencenumbers of the one or more polarized channels start from 0, and asequence number of the first mother code sequence with a length of 512selected from the maximum mother code sequence satisfies at least oneof: sequence number 146 is located in a 94^(th) location of the firstmother code sequence with a length of 512; sequence number 468 islocated in 427^(th) location of the first mother code sequence with alength of 512; or sequence number 505 is located in 502^(nd) location ofthe first mother code sequence with a length of 512; or sequence number495 is located in 506^(th) location of the first mother code sequencewith a length of 512; or sequence number 503 is located in 507^(th)location of the first mother code sequence with a length of 512; orsequence number 507 is located in 508^(th) location of the first mothercode sequence with a length of 512; or sequence number 509 is located in509^(th) location of the first mother code sequence with a length of512; or sequence number 510 is located in 510^(th) location of the firstmother code sequence with a length of 512; or sequence number 511 islocated in 511^(st) location of the first mother code sequence with alength of 512; or locations, in the first mother code sequence with thelength of 512, of a subset of sequence numbers {506, 479, 508} are {503,504, 505}; a sequence number of the first mother code sequence with alength of 256 selected from the maximum mother code sequence satisfiesat least one of: sequence number 100 is located in 87^(th) location ofthe first mother code sequence with a length of 256; or sequence number255 is located in 255^(th) location of the first mother code sequencewith a length of 256; a sequence number of the first mother codesequence with a length of 128 selected from the maximum mother codesequence satisfies at least one of: sequence number 93 is located in109^(th) location of the first mother code sequence with a length of128; or sequence number 127 is located in 127^(th) location of the firstmother code sequence with a length of 128; or locations, in the firstmother code sequence with the length of 128, of a subset of sequencenumbers {30, 98, 71, 45, 88} are {65, 66, 67, 68, 69}; or locations, inthe first mother code sequence with the length of 128, of a subset ofsequence numbers {123, 125, 126} are {124, 125, 126}; a sequence numberof the first mother code sequence with a length of 64 selected from themaximum mother code sequence satisfies at least one of: sequence number38 is located in 33^(rd) location of the first mother code sequence witha length of 64; or locations, in the first mother code sequence with thelength of 64, of a subsequence of sequence numbers [41, 28, 42] are the34^(th), 35^(th), and 36^(th) locations; or sequence number 29 islocated in 46^(th) location of the first mother code sequence with alength of 64; or sequence number 43 is located in 47^(th) location ofthe first mother code sequence with a length of 64; or sequence number51 is located in 50^(th) location of the first mother code sequence witha length of 64; or sequence number 58 is located in 55^(th) location ofthe first mother code sequence with a length of 64; or sequence number62 is located in 62^(nd) location of the first mother code sequence witha length of 64; or sequence number 63 is located in 63^(rd) location ofthe first mother code sequence with a length of 64; or locations, in thefirst mother code sequence with the length of 64, of a subset ofsequence numbers {30, 45} are {48, 49}; or locations, in the firstmother code sequence with the length of 64, of a subset of sequencenumbers {46, 53} are {51, 52}; or locations, in the first mother codesequence with the length of 64, of a subset of sequence numbers {54, 57}are {53, 54}; or locations, in the first mother code sequence with thelength of 64, of a subset of sequence numbers {47, 55, 59, 61} are {58,59, 60, 61}; or a sequence number of the first mother code sequence witha length of 32 selected from the maximum mother code sequence satisfiesat least one of: sequence number 28 is located in 15^(th) location ofthe first mother code sequence with a length of 32; or sequence number15 is located in 26^(th) location of the first mother code sequence witha length of 32; or sequence number 23 is located in 27^(th) location ofthe first mother code sequence with a length of 32; or sequence number27 is located in 28^(th) location of the first mother code sequence witha length of 32; or sequence number 29 is located in 29^(th) location ofthe first mother code sequence with a length of 32; or sequence number30 is located in 30^(th) location of the first mother code sequence witha length of 32; or sequence number 31 is located in 31^(st) location ofthe first mother code sequence with a length of
 32. 5. A computingdevice, comprising: at least one processor; and a non-transitorycomputer-readable storage medium coupled to the at least one processorand storing programming instructions for execution by the at least oneprocessor, the programming instructions instruct the at least oneprocessor to: pre-store at least one mother code sequence, wherein eachmother code sequence comprises one or more sequence numberscorresponding to one or more polarized channels, wherein the one or moresequence numbers are arranged in an ascending order according toreliability of the corresponding one or more polarized channels;determine a length N of a first mother code sequence of a target polarcode based on K, wherein K is a quantity of information bits in thetarget polar code, K+F+P=N, F is a quantity of fixed bits in the targetpolar code and P is a quantity of bits to be punctured in a ratematching process, N=2^(n), and n is a positive integer; determine, a setof information bit sequence number corresponding to the K informationbits of the target polar code, by selecting K non-punctured sequencenumbers in a descending order of reliability of corresponding polarizedchannels from the first mother code sequence, wherein the first mothercode sequence is obtained by selecting sequence numbers less than orequal to N from a maximum mother code sequence, and the maximum mothercode sequence is one sequence of the at least one mother code sequencewith a maximum length; and perform polar encoding on information bitsbased on the set of information bit sequence numbersx ₁ ^(N) =u ₁ ^(N) ·F _(N) wherein u₁ ^(N)=(u₁, u₂, u₃, . . . u_(N)) isa binary row vector with a length of N, the information bits are carriedin u₁ ^(N) according to the set of information bit sequence numbers,F_(N)=F₂ ^(⊗(log) ² ^(N)), where $F_{2} = {\begin{bmatrix}1 & 0 \\1 & 1\end{bmatrix}\mspace{14mu}{and}\mspace{14mu} F_{2}^{\otimes {({\log_{2}N})}}}$is a Kronecker product of log₂N F₂ matrices.
 6. The computing deviceaccording to claim 5, a length of the maximum mother code sequence is1024.
 7. The computing device according to claim 6, wherein the one ormore sequence numbers of the one or more polarized channels start from0, and sequence number 194 is located in a 137^(th) location of themaximum mother code sequence.
 8. The computing device according to claim6, wherein the one or more sequence numbers of the one or more polarizedchannels start from 0, and a sequence number of the first mother codesequence with a length of 512 selected from the maximum mother codesequence satisfies at least one of: sequence number 146 is located in a94^(th) location of the first mother code sequence with a length of 512;sequence number 468 is located in 427^(th) location of the first mothercode sequence with a length of 512; or sequence number 505 is located in502^(nd) location of the first mother code sequence with a length of512; or sequence number 495 is located in 506^(th) location of the firstmother code sequence with a length of 512; or sequence number 503 islocated in 507^(th) location of the first mother code sequence with alength of 512; or sequence number 507 is located in 508^(th) location ofthe first mother code sequence with a length of 512; or sequence number509 is located in 509^(th) location of the first mother code sequencewith a length of 512; or sequence number 510 is located in 510^(th)location of the first mother code sequence with a length of 512; orsequence number 511 is located in 511^(st) location of the first mothercode sequence with a length of 512; or locations, in the first mothercode sequence with the length of 512, of a subset of sequence numbers{506, 479, 508} are {503, 504, 505}; a sequence number of the firstmother code sequence with a length of 256 selected from the maximummother code sequence satisfies at least one of: sequence number 100 islocated in 87^(th) location of the first mother code sequence with alength of 256; or sequence number 255 is located in 255^(th) location ofthe first mother code sequence with a length of 256; a sequence numberof the first mother code sequence with a length of 128 selected from themaximum mother code sequence satisfies at least one of: sequence number93 is located in 109^(th) location of the first mother code sequencewith a length of 128; or sequence number 127 is located in 127^(th)location of the first mother code sequence with a length of 128; orlocations, in the first mother code sequence with the length of 128, ofa subset of sequence numbers {30, 98, 71, 45, 88} are {65, 66, 67, 68,69}; or locations, in the first mother code sequence with the length of128, of a subset of sequence numbers {123, 125, 126} are {124, 125,126}; a sequence number of the first mother code sequence with a lengthof 64 selected from the maximum mother code sequence satisfies at leastone of: sequence number 38 is located in 33^(rd) location of the firstmother code sequence with a length of 64; or locations, in the firstmother code sequence with the length of 64, of a subsequence of sequencenumbers [41, 28, 42] are the 34^(th), 35^(th), and 36^(th) locations; orsequence number 29 is located in 46^(th) location of the first mothercode sequence with a length of 64; or sequence number 43 is located in47^(th) location of the first mother code sequence with a length of 64;or sequence number 51 is located in 50^(th) location of the first mothercode sequence with a length of 64; or sequence number 58 is located in55^(th) location of the first mother code sequence with a length of 64;or sequence number 62 is located in 62^(nd) location of the first mothercode sequence with a length of 64; or sequence number 63 is located in63^(rd) location of the first mother code sequence with a length of 64;or locations, in the first mother code sequence with the length of 64,of a subset of sequence numbers {30, 45} are {48, 49}; or locations, inthe first mother code sequence with the length of 64, of a subset ofsequence numbers {46, 53} are {51, 52}; or locations, in the firstmother code sequence with the length of 64, of a subset of sequencenumbers {54, 57} are {53, 54}; or locations, in the first mother codesequence with the length of 64, of a subset of sequence numbers {47, 55,59, 61} are {58, 59, 60, 61}; or a sequence number of the first mothercode sequence with a length of 32 selected from the maximum mother codesequence satisfies at least one of: sequence number 28 is located in15^(th) location of the first mother code sequence with a length of 32;or sequence number 15 is located in 26^(th) location of the first mothercode sequence with a length of 32; or sequence number 23 is located in27^(th) location of the first mother code sequence with a length of 32;or sequence number 27 is located in 28^(th) location of the first mothercode sequence with a length of 32; or sequence number 29 is located in29^(th) location of the first mother code sequence with a length of 32;or sequence number 30 is located in 30^(th) location of the first mothercode sequence with a length of 32; or sequence number 31 is located in31^(st) location of the first mother code sequence with a length of 32.9. A non-transitory computer-readable storage medium, configured tostore programming instructions for execution by a computer device, theprogramming instructions instruct the computer device to: pre-store atleast one mother code sequence, wherein each mother code sequencecomprises one or more sequence numbers corresponding to one or morepolarized channels, wherein the one or more sequence numbers arearranged in an ascending order according to reliability of thecorresponding one or more polarized channels; determine a length N of afirst mother code sequence of a target polar code based on K, wherein Kis a quantity of information bits in the target polar code, K+F+P=N, Fis a quantity of fixed bits in the target polar code and P is a quantityof bits to be punctured in a rate matching process, N=2^(n), and n is apositive integer; determine, a set of information bit sequence numbercorresponding to the K information bits of the target polar code, byselecting K non-punctured sequence numbers in a descending order ofreliability of corresponding polarized channels from the first mothercode sequence, wherein the first mother code sequence is obtained byselecting sequence numbers less than or equal to N from a maximum mothercode sequence, and the maximum mother code sequence is one sequence ofthe at least one mother code sequence with a maximum length; and performpolar encoding on information bits based on the set of information bitsequence numbersx ₁ ^(N) =u ₁ ^(N) ·F _(N) wherein u₁ ^(N)=(u₁, u₂, u₃, . . . u_(N)) isa binary row vector with a length of N, the information bits are carriedin u₁ ^(N) according to the set of information bit sequence numbers,F_(N)=F₂ ^(⊗(log) ² ^(N)), where $F_{2} = {\begin{bmatrix}1 & 0 \\1 & 1\end{bmatrix}\mspace{14mu}{and}\mspace{14mu} F_{2}^{\otimes {({\log_{2}N})}}}$is a Kronecker product of log₂N F₂ matrices.
 10. The non-transitorycomputer-readable storage medium according to claim 9, a length of themaximum mother code sequence is
 1024. 11. The non-transitorycomputer-readable storage medium according to claim 10, wherein the oneor more sequence numbers of the one or more polarized channels startfrom 0, and sequence number 194 is located in a 137^(th) location of themaximum mother code sequence.
 12. The non-transitory computer-readablestorage medium according to claim 10, wherein the one or more sequencenumbers of the one or more polarized channels start from 0, and asequence number of the first mother code sequence with a length of 512selected from the maximum mother code sequence satisfies at least oneof: sequence number 146 is located in a 94^(th) location of the firstmother code sequence with a length of 512; sequence number 468 islocated in 427^(th) location of the first mother code sequence with alength of 512; or sequence number 505 is located in 502^(nd) location ofthe first mother code sequence with a length of 512; or sequence number495 is located in 506^(th) location of the first mother code sequencewith a length of 512; or sequence number 503 is located in 507^(th)location of the first mother code sequence with a length of 512; orsequence number 507 is located in 508^(th) location of the first mothercode sequence with a length of 512; or sequence number 509 is located in509^(th) location of the first mother code sequence with a length of512; or sequence number 510 is located in 510^(th) location of the firstmother code sequence with a length of 512; or sequence number 511 islocated in 511^(st) location of the first mother code sequence with alength of 512; or locations, in the first mother code sequence with thelength of 512, of a subset of sequence numbers {506, 479, 508} are {503,504, 505}; a sequence number of the first mother code sequence with alength of 256 selected from the maximum mother code sequence satisfiesat least one of: sequence number 100 is located in 87^(th) location ofthe first mother code sequence with a length of 256; or sequence number255 is located in 255^(th) location of the first mother code sequencewith a length of 256; a sequence number of the first mother codesequence with a length of 128 selected from the maximum mother codesequence satisfies at least one of: sequence number 93 is located in109^(th) location of the first mother code sequence with a length of128; or sequence number 127 is located in 127^(th) location of the firstmother code sequence with a length of 128; or locations, in the firstmother code sequence with the length of 128, of a subset of sequencenumbers {30, 98, 71, 45, 88} are {65, 66, 67, 68, 69}; or locations, inthe first mother code sequence with the length of 128, of a subset ofsequence numbers {123, 125, 126} are {124, 125, 126}; a sequence numberof the first mother code sequence with a length of 64 selected from themaximum mother code sequence satisfies at least one of: sequence number38 is located in 33^(rd) location of the first mother code sequence witha length of 64; or locations, in the first mother code sequence with thelength of 64, of a subsequence of sequence numbers [41, 28, 42] are the34^(th), 35^(th), and 36^(th) locations; or sequence number 29 islocated in 46^(th) location of the first mother code sequence with alength of 64; or sequence number 43 is located in 47^(th) location ofthe first mother code sequence with a length of 64; or sequence number51 is located in 50^(th) location of the first mother code sequence witha length of 64; or sequence number 58 is located in 55^(th) location ofthe first mother code sequence with a length of 64; or sequence number62 is located in 62^(nd) location of the first mother code sequence witha length of 64; or sequence number 63 is located in 63^(rd) location ofthe first mother code sequence with a length of 64; or locations, in thefirst mother code sequence with the length of 64, of a subset ofsequence numbers {30, 45} are {48, 49}; or locations, in the firstmother code sequence with the length of 64, of a subset of sequencenumbers {46, 53} are {51, 52}; or locations, in the first mother codesequence with the length of 64, of a subset of sequence numbers {54, 57}are {53, 54}; or locations, in the first mother code sequence with thelength of 64, of a subset of sequence numbers {47, 55, 59, 61} are {58,59, 60, 61}; or a sequence number of the first mother code sequence witha length of 32 selected from the maximum mother code sequence satisfiesat least one of: sequence number 28 is located in 15^(th) location ofthe first mother code sequence with a length of 32; or sequence number15 is located in 26^(th) location of the first mother code sequence witha length of 32; or sequence number 23 is located in 27^(th) location ofthe first mother code sequence with a length of 32; or sequence number27 is located in 28^(th) location of the first mother code sequence witha length of 32; or sequence number 29 is located in 29^(th) location ofthe first mother code sequence with a length of 32; or sequence number30 is located in 30^(th) location of the first mother code sequence witha length of 32; or sequence number 31 is located in 31^(st) location ofthe first mother code sequence with a length of 32.